package com.model;

/**
 * Bis_mdl_grdId entity. @author MyEclipse Persistence Tools
 */

public class Bis_mdl_grdId implements java.io.Serializable {

	// Fields

	private String mdl_typ_fk;
	private String mdl_id_fk;
	private String gd_grp;

	// Constructors

	/** default constructor */
	public Bis_mdl_grdId() {
	}

	/** full constructor */
	public Bis_mdl_grdId(String mdl_typ_fk, String mdl_id_fk, String gd_grp) {
		this.mdl_typ_fk = mdl_typ_fk;
		this.mdl_id_fk = mdl_id_fk;
		this.gd_grp = gd_grp;
	}

	// Property accessors

	public String getMdl_typ_fk() {
		return this.mdl_typ_fk;
	}

	public void setMdl_typ_fk(String mdl_typ_fk) {
		this.mdl_typ_fk = mdl_typ_fk;
	}

	public String getMdl_id_fk() {
		return this.mdl_id_fk;
	}

	public void setMdl_id_fk(String mdl_id_fk) {
		this.mdl_id_fk = mdl_id_fk;
	}

	public String getGd_grp() {
		return this.gd_grp;
	}

	public void setGd_grp(String gd_grp) {
		this.gd_grp = gd_grp;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_mdl_grdId))
			return false;
		Bis_mdl_grdId castOther = (Bis_mdl_grdId) other;

		return ((this.getMdl_typ_fk() == castOther.getMdl_typ_fk()) || (this
				.getMdl_typ_fk() != null && castOther.getMdl_typ_fk() != null && this
				.getMdl_typ_fk().equals(castOther.getMdl_typ_fk())))
				&& ((this.getMdl_id_fk() == castOther.getMdl_id_fk()) || (this
						.getMdl_id_fk() != null
						&& castOther.getMdl_id_fk() != null && this
						.getMdl_id_fk().equals(castOther.getMdl_id_fk())))
				&& ((this.getGd_grp() == castOther.getGd_grp()) || (this
						.getGd_grp() != null && castOther.getGd_grp() != null && this
						.getGd_grp().equals(castOther.getGd_grp())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getMdl_typ_fk() == null ? 0 : this.getMdl_typ_fk()
						.hashCode());
		result = 37 * result
				+ (getMdl_id_fk() == null ? 0 : this.getMdl_id_fk().hashCode());
		result = 37 * result
				+ (getGd_grp() == null ? 0 : this.getGd_grp().hashCode());
		return result;
	}

}